-- GENERATED SPELL FOR [Urok Ogre Magus] --


function spell0_10602(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(15979,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10602', 1000, 1)
end

function spell1_10602(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10602', 30313, 1)
end

function spell2_10602(pUnit, Event) --@Slow,n/a--
pUnit:FullCastSpellOnTarget(13747,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10602', 10000, 1)
end

function Sorts_10602(pUnit, Event)
local choix_sorts_10602 = math.random(0, 2)
if choix_sorts_10602 == 0 then
pUnit:RegisterEvent('spell0_10602', 1, 1)
end
if choix_sorts_10602 == 1 then
pUnit:RegisterEvent('spell1_10602', 1, 1)
end
if choix_sorts_10602 == 2 then
pUnit:RegisterEvent('spell2_10602', 1, 1)
end
end

function mob10602_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10602', math.random(1500, 3000), 1)
end

function mob10602_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10602_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10602_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10602, 1, 'mob10602_Action')
RegisterUnitEvent(10602, 2, 'mob10602_Leave')
RegisterUnitEvent(10602, 3, 'mob10602_Kill')
RegisterUnitEvent(10602, 4, 'mob10602_Die')
